package track
{
	import utils.Vector2D;

	/**
	 * 3	圆形轨迹
	 **/
	public class TrackCircle extends TrackProto
	{
		private static var _instance:TrackCircle;
		public function TrackCircle()
		{
			super();
		}
		
		public static function getInstance():TrackCircle{
			return _instance ||= new TrackCircle();
		}
		
		override public function make(subTypeId:uint):Array{
			switch(subTypeId)
			{
				case 0:
				{
					pathArr.push(new Vector2D(340, 60));
					pathArr.push(new Vector2D(540, 260));
					pathArr.push(new Vector2D(340, 490));
					pathArr.push(new Vector2D(120, 260));
					break;
				}
				case 1:
				{
					pathArr.push(new Vector2D(440, 60));
					pathArr.push(new Vector2D(640, 260));
					pathArr.push(new Vector2D(440, 490));
					pathArr.push(new Vector2D(220, 260));
					break;
				}
				case 2:
				{
					pathArr.push(new Vector2D(540, 60));
					pathArr.push(new Vector2D(740, 260));
					pathArr.push(new Vector2D(540, 490));
					pathArr.push(new Vector2D(320, 260));
					break;
				}
				case 3:
				{
					pathArr.push(new Vector2D(440, 60));
					pathArr.push(new Vector2D(740, 260));
					pathArr.push(new Vector2D(440, 490));
					pathArr.push(new Vector2D(120, 260));
					break;
				}
			}
			return pathArr;
		}
									 
	}
}
